package com.haopt.annotation.addcontainer;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author haopt
 * @version 1.0
 * @ClassName TearConfig
 * @Description 自定义注解和使用
 * @date 2021/5/12 10:16
 */
@Configuration
public class TearConfig {

    @ConditionOnClass("com.alibaba.fastjson.JSON")
    @Bean
    public Tear getTear(){
        return new Tear();
    }
}
